package com.charlotte.study.gupao.command.ftp;

import com.charlotte.study.gupao.command.ftp.command.ConnectCommand;
import com.charlotte.study.gupao.command.ftp.command.GetCommand;
import com.charlotte.study.gupao.command.ftp.command.PWDCommand;
import com.charlotte.study.gupao.command.ftp.command.PutCommand;
import com.charlotte.study.gupao.command.ftp.server.FTPServer;

/**
 * @author junjie.ding
 * @date 2020/3/16
 */
public class Test {

    public static void main(String[] args) {
        FTPServer server = new FTPServer();

        SSHClient client = new SSHClient();

        client.addCommand(new ConnectCommand(server));

        client.addCommand(new PWDCommand(server))
                .addCommand(new PutCommand(server));

        client.executes();

        client.execute(new GetCommand(server));


    }
}
